package com.hw.entity.dto.basic;

import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 菜品导入 DTO
 *
 * @author Xg
 * @date 2021/7/7 17:01
 */
@Data
@ApiModel(value = "FoodImportDTO", description = "菜品导入 DTO")
public class FoodImportDTO {

    /**
     * 自增id
     */
    @ApiModelProperty(value = "自增id")
    private Integer id;

    /**
     * 菜品id
     */
    @ApiModelProperty(value = "菜品id")
    private String foodId;

    /**
     * 菜品名称
     */
    @NotNull(message = "菜品名称不能为空")
    @Excel(name = "", fixedIndex = 0)
    @ApiModelProperty(value = "菜品名称")
    private String foodName;

    /**
     * 商家名称
     */
    @NotNull(message = "商家名称不能为空")
    @Excel(name = "", fixedIndex = 1)
    @ApiModelProperty(value = "商家名称")
    private String storeName;

    /**
     * 菜品描述
     */
    @Excel(name = "", fixedIndex = 2)
    @ApiModelProperty(value = "菜品描述")
    private String remark;

    /**
     * 菜品价格
     */
    @NotNull(message = "菜品价格不能为空")
    @Excel(name = "", fixedIndex = 3)
    @ApiModelProperty(value = "菜品价格")
    private Double price;
}
